
import requests

url = "https://fanyi.baidu.com/sug"
param = input("请输入要翻译的字符：")
post_data = {
    "kw": param
}
resp = requests.post(url,data=post_data)
result = resp.json().get('data')

for x in result:
    print(x)
resp.close()